package com.gskj.eduservice.service;

import com.gskj.eduservice.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gskj.eduservice.entity.chapter.ChapterVO;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2020-05-16
 */
public interface IEduChapterService extends IService<EduChapter> {

    /***
     * 根据 课程id 获取对应的 章节、小结集合
     * @param courseId
     * @return
     */
    List<ChapterVO> getChapterVideoByCourseId(String courseId);

    /***
     * 删除章节 根 id
     * @param id
     */
    boolean deleteChapter(String id);

}
